]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Correct the use of x2 in SlidingControl
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 23:42:41 +0000 (19:42 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 12 Oct 2013 18:38:13 +0000 (14:38 -0400)
The x2 here needs to be more than just the width; it needs to
be added onto the x1.

https://bugzilla.gnome.org/show_bug.cgi?id=694881

js/ui/overviewControls.js

index c16c4ac54c37ef82789883d8e9489daa4fcf5bf1..4128d6ce603bbc6e294bcc40ef99514717a88b09 100644 (file)
@@ -63,10 +63,11 @@ const SlideLayout = new Lang.Class({
         let translationX = (realDirection == SlideDirection.LEFT) ?
             (availWidth - natWidth) : (natWidth - availWidth);
 
-        let actorBox = new Clutter.ActorBox({ x1: translationX,
-                                              y1: 0,
-                                              x2: child.x_expand ? availWidth : natWidth,
-                                              y2: child.y_expand ? availHeight : natHeight });
+        let actorBox = new Clutter.ActorBox();
+        actorBox.x1 = translationX;
+        actorBox.x2 = actorBox.x1 + child.x_expand ? availWidth : natWidth;
+        actorBox.y1 = 0;
+        actorBox.y2 = actorBox.y1 + child.y_expand ? availHeight : natHeight;
 
         child.allocate(actorBox, flags);
     },